package com.gepengjun.lims.controler;

import com.gepengjun.lims.util.MyCustomDateEditor;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

import java.util.Date;

public class BaseController {

    @InitBinder

    public void initBinder(WebDataBinder binder) {

        binder.registerCustomEditor(Date.class, new MyCustomDateEditor());

    }
}
